package com.crm.system.domain;

import java.util.Date;

import com.crm.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.crm.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 患者对象 bie_patient
 * 
 * @author crm
 * @date 2021-05-10
 */
public class BiePatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者编号 */
    private String patientId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 患者性别 */
    @Excel(name = "患者性别")
    private Long patientSex;

    /** 患者地址 */
    @Excel(name = "患者地址")
    private String address;

    /** 患者手机号码 */
    @Excel(name = "患者手机号码")
    private String phone;

    public void setPatientId(String patientId) 
    {
        this.patientId = patientId;
    }

    public String getPatientId() 
    {
        return patientId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setPatientSex(Long patientSex) 
    {
        this.patientSex = patientSex;
    }

    public Long getPatientSex() 
    {
        return patientSex;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("userId", getUserId())
            .append("patientName", getPatientName())
            .append("birthday", getBirthday())
            .append("patientSex", getPatientSex())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .toString();
    }
}
